import request from '@/utils/request'

export function getSupplierListApi (data) {
  return request({
    url: '/api/product.supplier/index',
    method: 'post',
    data
  })
}

export function getSupplierPickerApi (data) {
  return request({
    url: '/api/product.supplier/picker',
    method: 'post',
    data
  })
}

export function readSupplierApi (data) {
  return request({
    url: '/api/product.supplier/read',
    method: 'post',
    data
  })
}

export function createSupplierApi (data) {
  return request({
    url: '/api/product.supplier/create',
    method: 'post',
    data
  })
}

export function saveSupplierApi (data) {
  return request({
    url: '/api/product.supplier/save',
    method: 'post',
    data
  })
}

export function deleteSupplierApi (data) {
  return request({
    url: '/api/product.supplier/delete',
    method: 'post',
    data
  })
}